#include <GL/gl.h>

#include "include/LoadNameVisitor.h"
#include "include/Territoire.h"

void LoadNameVisitor::visit(Territoire * _territoire)
{
   glPushMatrix();
   glTranslatef(0.0f, 0.0f, _territoire->getHauteur());
   glLoadName( _territoire->getId() );
   glCallList( *(_territoire->getModel3D()->getDisplayList()) );
   glPopMatrix();
}

